<?php /* Smarty version Smarty-3.1.6, created on 2012-12-01 05:48:51
         compiled from "./admin/Tpl\item\edit.html" */ ?>
<?php /*%%SmartyHeaderCode:188750b24c60207ee9-60200015%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '29c7893f1220d93ddd73741d0e44976e1e3e83f5' => 
    array (
      0 => './admin/Tpl\\item\\edit.html',
      1 => 1354230386,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '188750b24c60207ee9-60200015',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_50b24c602e8cc',
  'variables' => 
  array (
    'item' => 0,
    'class' => 0,
    'c' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_50b24c602e8cc')) {function content_50b24c602e8cc($_smarty_tpl) {?><link href="/assets/css/admin.css" rel="stylesheet" type="text/css"/>
<link href="/assets/css/dialog.css" rel="stylesheet" type="text/css" />

<form action="/admin.php?m=item&a=update" method="post">
<div class="pad-10">
<table width="100%" cellpadding="2" cellspacing="1" class="table_form">
  <tbody>
    <tr>
      <th width="100">商品名称 :<input type="hidden" name="id" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
"></th>
      <td><input type="hidden" name="id" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
"><input type="text" name="title" id="title" class="input-text" size="60" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['title'];?>
"></td>
    </tr>
    <tr>
      <th>所属分类 :</th>
      <td><select name="classId" id="pcid">
          <option value="">--请选择--</option>
		  <?php  $_smarty_tpl->tpl_vars['c'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['c']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['class']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['c']->key => $_smarty_tpl->tpl_vars['c']->value){
$_smarty_tpl->tpl_vars['c']->_loop = true;
?>
          <option value="<?php echo $_smarty_tpl->tpl_vars['c']->value['id'];?>
"<?php if ($_smarty_tpl->tpl_vars['c']->value['id']==$_smarty_tpl->tpl_vars['item']->value['classId']){?>selected="selected"<?php }?> ><?php echo $_smarty_tpl->tpl_vars['c']->value['className'];?>
</option>
		  <?php } ?>
        </select>
        </td>
    </tr>
    <tr>
      <th>封面图片</th>
      <td><img width="300" src="<?php echo $_smarty_tpl->tpl_vars['item']->value['pic_url'];?>
" style="border: 1px solid #999999;padding:1px;"><br>
        <br>
        <input type="text" name="pic_url" id="img" class="input-text" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['pic_url'];?>
" size="21"></td>
    </tr>
    <tr>
      <th>链接地址 :</th>
      <td><input type="text" name="item_link" id="url" class="input-text" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['item_link'];?>
" size="60"></td>
    </tr>
	<tr>
      <th>商品ID :</th>
      <td><input type="text" name="item_id" id="url" class="input-text" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['item_id'];?>
" size="60"></td>
    </tr>
    <tr>
      <th>价格 :</th>
      <td><input type="text" name="price" id="price" class="input-text" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['price'];?>
" size="10">
        元</td>
    </tr>
    <tr>
      <th>喜欢数 :</th>
      <td><input type="text" name="likes" id="likes" class="input-text" value="509" size="10" ></td>
    </tr>
	   <tr>
      <th>店铺 :</th>
      <td><input type="text" name="shop" id="likes" class="input-text" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['shop'];?>
" size="10" ></td>
    </tr>
    <tr>
      <th>浏览数 :</th>
      <td><input type="text" name="hits" id="hits" class="input-text" value="0" size="10" ></td>
    </tr>
    <tr>
      <th>发布时间 :</th>
      <td><input type="text" class="input-text" value="2012-08-25 10:34:55" size="30"></td>
    </tr>
    <tr>
      <th>更新时间 :</th>
      <td><input type="text" class="input-text" value="2012-08-25 10:34:55" size="30"></td>
    </tr>
	<tr>
      <th>点击 :</th>
      <td><input type="text" name="click" class="input-text" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['click'];?>
" size="4"></td>
    </tr>
    <tr>
      <th>审核 :</th>
      <td><input type="text" name="status" class="input-text" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['status'];?>
" size="4"></td>
    </tr>
	<tr>
      <th>排序 :</th>
      <td><input type="text" name="sort" class="input-text" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['sort'];?>
" size="4"></td>
    </tr>
	<tr>
      <th>保存 :</th>
      <td><input type="submit" class="input-text" value="保存" size="30"></td>
    </tr>
  </tbody>
</table>
  </div>
  </form>







<?php }} ?>